package com.zxc.gulimall.product.feign;

import com.zxc.common.utils.R;
import com.zxc.gulimall.product.vo.WareSkuLockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(value = "ware-service")
public interface WareFeignService {

    @PostMapping(value = "/ware/waresku/hasstock")
    public R hasStock(@RequestBody List<Long> skuIds);

    @PostMapping(value = "/ware/waresku/lock/order")
    public R orderLockStock(@RequestBody WareSkuLockVo vo);
}
